Previous Book Contents Book Index Next

Inside Macintosh: Programming With the Text Encoding Conversion Manager /
Chapter 4 - Unicode Converter Reference / Unicode Converter Functions
Converting to Unicode /


ChangeTextToUnicodeInfo

Changes the mapping information for the specified Unicode converter object used to convert text to Unicode to the new mapping you provide.

pascal OSStatus ChangeTextToUnicodeInfo (
                     TextToUnicodeInfo ioTextToUnicodeInfo, 
                     ConstUnicodeMappingPtr iUnicodeMapping);
ioTextToUnicodeInfo
The Unicode converter object of type TextToUnicodeInfo (page 119) containing the mapping to be modified. You use the function CreateTextToUnicodeInfo (page 125) to obtain one.
iUnicodeMapping
A structure of type UnicodeMapping (page 118) identifying the new mapping to be used. This is the mapping that replaces the existing mapping in the Unicode converter object.
function result
A result code. See "Text Encoding Conversion Manager Result Codes" (page 42) in the chapter "Basic Text Types Reference."
DISCUSSION
The ChangeTextToUnicodeInfo function allows you to provide new mapping information for text to be converted to Unicode. The function replaces the mapping table information that currently exists in the Unicode converter object pointed to by the ioTextToUnicodeInfo parameter with the information contained in the UnicodeMapping structure you supply as the iUnicodeMapping parameter.

ChangeTextToUnicodeInfo resets the Unicode converter object's fields as necessary.

In addition to various resource errors, the function can return the following result codes:

If an error is returned, the Unicode converter object is invalid.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 NOV 1997